package com.newland.rbac.service.impl;

import com.newland.rbac.model.Menu;
import com.newland.rbac.dao.MenuMapper;
import com.newland.rbac.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.newland.rbac.vo.MenuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统全部菜单 服务实现类
 * </p>
 *
 * @author Yanan
 * @since 2021-08-04
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<MenuVo> getMenu(String principal) {
        return menuMapper.getMenu(principal);
    }
}
